package Demo5;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-05-23
 * Time: 16:17
 */
public class Animal {
    public String name;
    public int age;
    public Animal(String name,int age) {
        this.name = name;
        this.age =age;
    }
    public void eat() {
        System.out.println(name + "吃东西");
    }
}
